<?xml version="1.0" encoding="utf-8" ?> 
<language xmlns="http://rsdn.ru/coloring" name="SQL" options="(?in)">
	<!-- comments -->
	<pattern name="com">
		<entry>(?m:--.*?$)</entry>
		<entry>(?s:/\*.*?\*/)</entry>
	</pattern>
	<!-- literals -->
	<pattern name="str">
		<entry>@'(''|[^'])*'</entry>
	</pattern>
	<!-- keywords -->
	<pattern name="kw" prefix="\b" postfix="\b">
		<entry>ADD</entry>
		<entry>ALL</entry>
		<entry>ALTER</entry>
		<entry>AND</entry>
		<entry>ANY</entry>
		<entry>AS</entry>
		<entry>ASC</entry>
		<entry>AUTHORIZATION</entry>
		<entry>BACKUP</entry>
		<entry>BEGIN</entry>
		<entry>BETWEEN</entry>
		<entry>BREAK</entry>
		<entry>BROWSE</entry>
		<entry>BULK</entry>
		<entry>BY</entry>
		<entry>CASCADE</entry>
		<entry>CASE</entry>
		<entry>CHECK</entry>
		<entry>CHECKPOINT</entry>
		<entry>CLOSE</entry>
		<entry>CLUSTERED</entry>
		<entry>COALESCE</entry>
		<entry>COLLATE</entry>
		<entry>COLUMN</entry>
		<entry>COMMIT</entry>
		<entry>COMPUTE</entry>
		<entry>CONSTRAINT</entry>
		<entry>CONTAINS</entry>
		<entry>CONTAINSTABLE</entry>
		<entry>CONTINUE</entry>
		<entry>CONVERT</entry>
		<entry>COUNT</entry>
		<entry>CREATE</entry>
		<entry>CROSS</entry>
		<entry>CURRENT</entry>
		<entry>CURRENT_DATE</entry>
		<entry>CURRENT_TIME</entry>
		<entry>CURRENT_TIMESTAMP</entry>
		<entry>CURRENT_USER</entry>
		<entry>CURSOR</entry>
		<entry>DATABASE</entry>
		<entry>DBCC</entry>
		<entry>DEALLOCATE</entry>
		<entry>DECLARE</entry>
		<entry>DEFAULT</entry>
		<entry>DELETE</entry>
		<entry>DENY</entry>
		<entry>DESC</entry>
		<entry>DISK</entry>
		<entry>DISTINCT</entry>
		<entry>DISTRIBUTED</entry>
		<entry>DOUBLE</entry>
		<entry>DROP</entry>
		<entry>DUMMY</entry>
		<entry>DUMP</entry>
		<entry>ELSE</entry>
		<entry>END</entry>
		<entry>ERRLVL</entry>
		<entry>ESCAPE</entry>
		<entry>EXCEPT</entry>
		<entry>EXEC</entry>
		<entry>EXECUTE</entry>
		<entry>EXISTS</entry>
		<entry>EXIT</entry>
		<entry>FETCH</entry>
		<entry>FILE</entry>
		<entry>FILLFACTOR</entry>
		<entry>FOR</entry>
		<entry>FOREIGN</entry>
		<entry>FREETEXT</entry>
		<entry>FREETEXTTABLE</entry>
		<entry>FROM</entry>
		<entry>FULL</entry>
		<entry>FUNCTION</entry>
		<entry>GOTO</entry>
		<entry>GRANT</entry>
		<entry>GROUP</entry>
		<entry>HAVING</entry>
		<entry>HOLDLOCK</entry>
		<entry>IDENTITY</entry>
		<entry>IDENTITY_INSERT</entry>
		<entry>IDENTITYCOL</entry>
		<entry>IF</entry>
		<entry>IN</entry>
		<entry>INDEX</entry>
		<entry>INNER</entry>
		<entry>INSERT</entry>
		<entry>INTERSECT</entry>
		<entry>INTO</entry>
		<entry>IS</entry>
		<entry>JOIN</entry>
		<entry>KEY</entry>
		<entry>KILL</entry>
		<entry>LEFT</entry>
		<entry>LIKE</entry>
		<entry>LINENO</entry>
		<entry>LOAD</entry>
		<entry>LOCAL</entry>
		<entry>NATIONAL</entry>
		<entry>NOCHECK</entry>
		<entry>NONCLUSTERED</entry>
		<entry>NOT</entry>
		<entry>NULL</entry>
		<entry>NULLIF</entry>
		<entry>OF</entry>
		<entry>OFF</entry>
		<entry>OFFSETS</entry>
		<entry>ON</entry>
		<entry>OPEN</entry>
		<entry>OPENDATASOURCE</entry>
		<entry>OPENQUERY</entry>
		<entry>OPENROWSET</entry>
		<entry>OPENXML</entry>
		<entry>OPTION</entry>
		<entry>OR</entry>
		<entry>ORDER</entry>
		<entry>OUTER</entry>
		<entry>OVER</entry>
		<entry>PERCENT</entry>
		<entry>PLAN</entry>
		<entry>PRECISION</entry>
		<entry>PRIMARY</entry>
		<entry>PRINT</entry>
		<entry>PROC</entry>
		<entry>PROCEDURE</entry>
		<entry>PUBLIC</entry>
		<entry>RAISERROR</entry>
		<entry>READ</entry>
		<entry>READTEXT</entry>
		<entry>RECONFIGURE</entry>
		<entry>REFERENCES</entry>
		<entry>REPLICATION</entry>
		<entry>RESTORE</entry>
		<entry>RESTRICT</entry>
		<entry>RETURN</entry>
		<entry>REVOKE</entry>
		<entry>RIGHT</entry>
		<entry>ROLLBACK</entry>
		<entry>ROWCOUNT</entry>
		<entry>ROWGUIDCOL</entry>
		<entry>RULE</entry>
		<entry>SAVE</entry>
		<entry>SCHEMA</entry>
		<entry>SELECT</entry>
		<entry>SESSION_USER</entry>
		<entry>SET</entry>
		<entry>SETUSER</entry>
		<entry>SHUTDOWN</entry>
		<entry>SOME</entry>
		<entry>STATISTICS</entry>
		<entry>SYSTEM_USER</entry>
		<entry>TABLE</entry>
		<entry>TEXTSIZE</entry>
		<entry>THEN</entry>
		<entry>TO</entry>
		<entry>TOP</entry>
		<entry>TRAN</entry>
		<entry>TRANSACTION</entry>
		<entry>TRIGGER</entry>
		<entry>TRUNCATE</entry>
		<entry>TSEQUAL</entry>
		<entry>UNION</entry>
		<entry>UNIQUE</entry>
		<entry>UPDATE</entry>
		<entry>UPDATETEXT</entry>
		<entry>USE</entry>
		<entry>USER</entry>
		<entry>VALUES</entry>
		<entry>VARYING</entry>
		<entry>VIEW</entry>
		<entry>WAITFOR</entry>
		<entry>WHEN</entry>
		<entry>WHERE</entry>
		<entry>WHILE</entry>
		<entry>WITH</entry>
		<entry>WRITETEXT</entry>
	</pattern>
</language>